home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Transcript 1.0b1 / Hello World ƒ / BuildHelloWorld next >
Text File  |  1996-06-15  |  978b  |  25 lines

  1. # Build the fat Hello World! application.
  2. # Copyright © 1996 Christopher E. Hyde.  All rights reserved.
  3.  
  4. Set App "::Hello World!"
  5. Set Src ""    #":Hello World ƒ:"
  6. Set Obj "::Obj ƒ:"
  7. Set DbgFolder "::"
  8. Set COptions "-i ∂"{DbgFolder}∂""
  9.  
  10. # Build for PowerPC
  11. MrC {COptions} "{Src}HelloWorld.c" -o "{Obj}HelloWorld.c.x"
  12. MrC {COptions} "{DbgFolder}DbgPrintF.c" -o "{Obj}DbgPrintF.c.x"
  13. PPCLink -d -o "{App}" -t 'APPL' "{Obj}HelloWorld.c.x" "{Obj}DbgPrintF.c.x"    ∂
  14.     "{SharedLibraries}InterfaceLib"    "{SharedLibraries}StdCLib"        ∂
  15.     "{SharedLibraries}MathLib"        "{PPCLibraries}StdCRuntime.o"
  16. #Rez "{Src}HelloWorld.r" -o "{App}" -append
  17.  
  18. # Build for 68K
  19. SC {COptions} "{Src}HelloWorld.c" -o "{Obj}HelloWorld.c.o"
  20. SC {COptions} "{DbgFolder}DbgPrintF.c" -o "{Obj}DbgPrintF.c.o"
  21. Link -d -o "{App}" -t 'APPL' "{Obj}HelloWorld.c.o" "{Obj}DbgPrintF.c.o"    ∂
  22.     "{Libraries}IntEnv.o"        "{Libraries}MacRuntime.o"    ∂
  23.     "{Libraries}Interface.o"    "{CLibraries}StdCLib.o"
  24. Rez "{Src}HelloWorld.r" -o "{App}" -append
  25.